<?php
session_start();
$deptname = $_REQUEST['deptname'];
$location = $_REQUEST['location'];
$description = $_REQUEST['description'];

$newlang = $_REQUEST['newlang'];

if ($_REQUEST['newlang'] == "EN") {
	include "../../value/value_en.php";
} else if($_REQUEST['newlang'] == "VN") {
	include "../../value/value_vn.php";
}
else {
	include "../../value/value_kr.php";
}

?>
<style>
.head_tit { color: #327AAE; font-size: 16px; font-weight: bold; text-align: center; padding-bottom:10px; border-bottom:1px dotted silver}
.td_first2 {background:#e8e8e8; padding:8px; width:240px}
.in_depart { width:535px; height:22px; border:1px solid #ccc; background:white}
.tit_depart {background: #216ca3; color:white; font-weight:bold; padding:5px 0; text-align:center}
</style>
<div style="border:1px solid silver; border-radius: 3px; padding:15px; width:800px; margin:0 10px">
<div>
	<div id="head"
		style="color: #327aae; font-weight: bold; font-size: 16px; text-align: center;"><?php echo $l_createdept?></div>
	<div style="height: 20px;"></div>
	<center>
		<img src="images/line1.png" width="100%" /><br /> <br /> <br /> <br />
	</center>
	
	<form action="admin/employeemanagement/result-register-dept.php" method="get">
		<table style="width: 100%">
			<tr>
				<td><?php if($newlang=="VN"){?><input type="checkbox" id="cvietnam"
					disabled="disabled" name="cvietnam" checked="checked"> Việt Nam<?php }else{?>
					<input type="checkbox" id="cvietnam" name="cvietnam" onclick="checkShowHide(this);"> Việt Nam <?php }?>
				</td>
				<td><?php if($newlang=="EN"){?><input type="checkbox" id="cenglish"
					disabled="disabled" name="cenglish" checked="checked"> England<?php }else{?>
					<input type="checkbox" id="cenglish" name="cenglish"  onclick="checkShowHide(this);"> England <?php }?>
				</td>
				<td><?php if($newlang=="KR"){?><input type="checkbox" id="ckorea"
					disabled="disabled" name="ckorea" checked="checked"> Korean<?php }else{?>
					<input type="checkbox" id="ckorea" name="ckorea"  onclick="checkShowHide(this);"> Korean <?php }?>
				</td>
			</tr>
		</table>
	<div style="height: 20px;"></div>

	<table  style="width:100%;display: <?php if($newlang=="KR"){?>inline<?php }else {?>none<?php }?>;" id="tbKorean">
		<tr>
			<td class="tit_depart" colspan="2"><b>Korean</b>
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_deptname?></td>
			<td><input id="deptnameKR" class="in_depart" name="deptnameKR" value="<?=$deptname?>" />
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_location?></td>
			<td><input id="locationKR" class="in_depart" name="locationKR" value="<?=$location?>" />
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_description?></td>
			<td><input id="descriptionKR" class="in_depart" name="descriptionKR" value="<?=$description?>" />
			</td>
		</tr>
	</table>

	<div style="height: 20px;"></div>

	<table style="width:100%;display: <?php if($newlang=="EN"){?>inline<?php }else {?>none<?php }?>;" id="tbEngland">
		<tr>
			<td class="tit_depart" colspan="2" ><b>England</b>
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_deptname?></td>
			<td><input id="deptnameEN"
				class="in_depart" name="deptnameEN"value="<?=$deptname?>" />
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_location?></td>
			<td><input id="locationEN" class="in_depart" name="locationEN" value="<?=$location?>" />
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_description?></td>
			<td><input id="descriptionEN" class="in_depart" name="descriptionEN" value="<?=$description?>" />
			</td>
		</tr>
	</table>

	<div style="height: 20px;"></div>

	<table  style="width:100%;display: <?php if($newlang=="VN"){?>inline<?php }else {?>none<?php }?>;" id="tbVietnam">
		<tr>
			<td class="tit_depart" colspan="2"><b>Việt
					Nam</b>
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_deptname?></td>
			<td><input id="deptnameVN" class="in_depart" name="deptnameVN" value="<?=$deptname?>" />
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_location?></td>
			<td ><input id="locationVN" class="in_depart" name="locationVN" value="<?=$location?>" />
			</td>
		</tr>
		<tr>
			<td class="td_first2"><?php echo $l_description?></td>
			<td ><input id="descriptionVN" class="in_depart" name="descriptionVN" value="<?=$description?>" />
			</td>
		</tr>
	</table>
	<div style="text-align: center;">
		<input type="submit" name="createdept"
			style="background: #4eacd6; width: 100px; height: 30px; color: white; font-weight: bold;"
			value="<?php echo $l_ok?>"> 
	</div>
	
	</form>
</div>
</div>